package ciicos.check.service.impl;

import ciicos.check.entity.CheckPlanItemEntity;
import ciicos.check.mapper.CheckPlanItemMapper;
import ciicos.check.model.checkplan.CheckPlanPagination;
import ciicos.check.service.CheckPlanItemService;
import ciicos.permission.service.AuthorizeService;
import ciicos.util.GeneraterSwapUtil;
import ciicos.util.ServletUtil;
import ciicos.util.UserProvider;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 巡检计划
 * 版本： V3.2.0
 * 版权：
 * 作者： 产研项目租
 * 日期： 2023-08-16
 */
@Service
public class CheckPlanItemServiceImpl extends ServiceImpl<CheckPlanItemMapper, CheckPlanItemEntity> implements CheckPlanItemService {


    @Autowired
    private GeneraterSwapUtil generaterSwapUtil;

    @Autowired
    private UserProvider userProvider;

    @Autowired
    private AuthorizeService authorizeService;

    @Override
    public QueryWrapper<CheckPlanItemEntity> getChild(CheckPlanPagination pagination, QueryWrapper<CheckPlanItemEntity> checkPlanItemQueryWrapper) {
        boolean pcPermission = true;
        boolean appPermission = false;
        boolean isPc = ServletUtil.getHeader("ciicos-origin").equals("pc");
        if (isPc) {
        }

        if (!isPc) {
        }
        return checkPlanItemQueryWrapper;
    }

}
